Name :String substitution

Symbol :REPLACE

Illustrate:

    After the P character, replace the L character of IN1 with IN2.

Image:

Parameter:

Parameter Statement Type Description
IN1 Input STRING
Enter the string IN1
IN2 Input STRING
Enter the string IN2
L Input USINT
Replace the length
P Input USINT
Start position
OUT Output STRING
Output string

Example:

LD:

ST:



Interpretation:

parameter operandvalue
IN1TagIn1Enter a value:'ABCDE'
IN2TagIn2Enter a value:'X'
LTagLen长度:2
PPositionStart position:3
OUTTagOutOutput value:'ABXE'
    IN1 and IN2 input string type data, L input the length of the substitution, P input the starting position, and OUT output the replaced string.